package com.tang.script.command;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class CommandContext {
    AbstractScriptCommand abstractScriptCommand;
    static ThreadLocal<CommandContext> contextThreadLocal = new ThreadLocal<>();

    public static void setContextThreadLocal(CommandContext context) {
        contextThreadLocal.set(context);
    }

    public static CommandContext getContext() {
        return contextThreadLocal.get();
    }


}
